﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("输入一个四位数");
            int a = int.Parse(Console.ReadLine());
            if (a>999 && a<10000)
            {
                int b = a / 1000;
                int c = a % 1000 / 100;
                int d = a % 100 / 10;
                int e = a % 10;
                Console.WriteLine("千位：" + b);
                Console.WriteLine("百位：" + c);
                Console.WriteLine("十位：" + d);
                Console.WriteLine("个位：" + e);
            }
            
        }
    }
}
